import React from "react";
import {Text, View} from "@tarojs/components";

import styles from "./MessageTextCell.module.scss"
import {Color} from "../../color";

interface Props {
  text:string
  color:Color
}

interface State {
}

export class MessageTextCell extends React.Component<Props, State> {
  constructor(args: Props | Readonly<Props>) {
    super(args);
  }
  componentWillMount () {
  }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }


  render () {
    return (
      <View style={`background-color: ${this.props.color}`} className={styles.container} >
        <Text className={styles.text}>{this.props.text}</Text>
      </View>
    )
  }
}
